package com.dj.mingkong.admin.biz.controller.music.vo.request;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.PositiveOrZero;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 音乐盒VO
 *
 * @author zenglonghui
 * @date: 2022/12/12 17:18
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class BoxUpdateVo implements Serializable {
    @NotNull(message = "id must not be null")
    private Long id;

    @NotNull(message = "status must not be null")
    @Max(value = 1, message = "status invalid")
    @Min(value = 0, message = "status invalid")
    @PositiveOrZero(message = "status invalid")
    private Integer status;
    /**
     * 生成HTML状态 0未生成 1已生成
     */
    @NotNull(message = "genStatus must not be null")
    @Max(value = 1, message = "genStatus invalid")
    @Min(value = 0, message = "genStatus invalid")
    @PositiveOrZero(message = "genStatus invalid")
    private Integer genStatus;

}
